﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Ewts.Storage
{
    public partial class MyCustomerAddList : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request["cumid"] != null && Request["cumid"].ToString().Trim() != "")
                {
                    int cumid = int.Parse(Request["cumid"].ToString().Trim());
                    BindData(cumid);
                }
                
            }
        }

        /// <summary>
        /// 数据绑定
        /// </summary>
        /// <param name="cumid"></param>
        protected void BindData(int cumid)
        {
            DataTable dt = new DataTable();
            dt = new DataLib.BLL.CumtomerAddress().GetList("customerid=" + cumid).Tables[0];

            reptCustomer.DataSource = dt;
            reptCustomer.DataBind();
        }




    }
}